<template>
  <div>
    <a href="javascript:;" @click="skip('/home')">首页</a>&nbsp;&nbsp;
    <a href="javascript:;" @click="skip('/class')">分类</a>&nbsp;&nbsp;
    <a href="javascript:;" @click="skip('/order')">订单</a>&nbsp;&nbsp;
    <a href="javascript:;" @click="skip('/my')">我的</a>
    <div>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    skip(path) {
      this.$router.push({
        path,
      })
    }
  }
}
</script>

<style>

</style>